package com.hermes.biz.service.item.impl;

import java.util.List;

import com.hermes.biz.common.model.item.ItemUserRelationDO;
import com.hermes.biz.manager.item.UserItemRelationManager;
import com.hermes.biz.service.item.UserItemRelationService;

public class UserItemRelationServiceImpl implements UserItemRelationService {

	private UserItemRelationManager userItemRelationManager;
	
	public List<ItemUserRelationDO> getUserInterestedItems(long userId) {
		List<ItemUserRelationDO> resultList = this.userItemRelationManager.getUserInterestedItems(userId);
		return resultList;
	}

	public boolean insertUserInterestedItem(ItemUserRelationDO itemUserRelationDO) {
		boolean result = this.userItemRelationManager.insertUserInterestedItem(itemUserRelationDO);
		return result;
	}

	public boolean deleteUserInterestedItem(long userId, long itemId) {
		boolean result = this.userItemRelationManager.deleteUserInterestedItem(userId, itemId);
		return result;
	}

	public UserItemRelationManager getUserItemRelationManager() {
		return userItemRelationManager;
	}

	public void setUserItemRelationManager(UserItemRelationManager userItemRelationManager) {
		this.userItemRelationManager = userItemRelationManager;
	}

	public boolean hasUserInterestedItem(long userId, long itemId) {
		this.userItemRelationManager.hasUserInterestedItem(userId, itemId);
		return false;
	}

}
